package com.chen.controller.service.impl;

import com.chen.controller.service.TtService;
import com.chen.dao.TtDao;
import com.chen.entity.TtEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Title: manager-spring-mvc-hb
 * @Description: to do
 * @Author: chenjiwei
 * @Date: 2020-11-12 22:23
 * @Version: 1.0.0
 */
@Service
public class TtServiceImpl extends BaseServiceImpl<TtEntity> implements TtService {
    
    @Resource
    private TtDao ttDao;
    
    @Override
    public List counts() {
        return ttDao.counts();
    }

    @Override
    public JpaSpecificationExecutor<TtEntity> getBaseRepository() {
        return ttDao;
    }

    @Override
    protected String filterForFindAll() {
        return null;
    }
}